package ny.com.demo.zuoye.demo03.zhifu;

public class Wx implements Pay {
    double yue =550;
    @Override
    public void pay(double moeny) {
        if(yue>=moeny){
            System.out.println("微信钱包支付"+moeny);
            yue = yue - moeny;
            System.out.println("余额："+yue);
        }
        else {
            System.out.println("钱包空荡荡T~T");
        }
    }
}